package service.custom.impl;

import dao.PersonalbasicDao;
import model.personal.Personalbasic;
import service.custom.PersonalService;

public class PersonalServiceImpl implements PersonalService{

	private PersonalbasicDao personalbasicDao;
	@Override
	public void savePersonalBasic(Personalbasic personalbasic) {
		personalbasicDao.save(personalbasic);
	}
	
	@Override
	public Personalbasic personalShow(int id) {
		return personalbasicDao.findOne("id", id);
	}
	
	
	public void personalDelete(Personalbasic pbasic){
		personalbasicDao.delete(pbasic);
	}
	
	public PersonalbasicDao getPersonalbasicDao() {
		return personalbasicDao;
	}
	public void setPersonalbasicDao(PersonalbasicDao personalbasicDao) {
		this.personalbasicDao = personalbasicDao;
	}
	

}
